const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const withdrawalSchema = Schema({
    //客户姓名
    name: {
        type: String,
        required: true
    },
    //身份证卡号
    idcard: {
        type: Number,
        required: true
    },
    //手机号
    phone: {
        type: Number,
        required: true
    },
    //发起提现金额
    getCash: {
        type: Number,
        required: true
    },
    //实际到账金额
    cash: {
        type: Number,
        required: true
    },
    //银行卡号
    bankCard: {
        type: Number,
        required: true
    },
    //发起提现时间
    getDate: {
        type: Date,
        required: true
    },
    //提现的状态
    cashStatus: {
        type: String,
        required: true
    },
    //提现失败的原因
    failed: {
        type: String,
    }
}, { versionKey: false })

module.exports = mongoose.model("withdrawl", withdrawalSchema)

